package com.slofzx.nuoda.evaluation.param.controller;

import com.slofzx.nuoda.common.vo.AjaxResultVO;
import com.slofzx.nuoda.daqing.wechat.dto.WechatDataDTO;
import com.slofzx.nuoda.daqing.wechat.util.WechatUtil;
import com.slofzx.nuoda.daqing.wechat.vo.WechatResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/project/test")
@Controller
public class WechatTestController {
    @Autowired
    private WechatUtil wechatUtil;

    @ResponseBody
    @GetMapping("/wechat/send")
    public AjaxResultVO<WechatResultVO> send(WechatDataDTO dto) {
        return AjaxResultVO.newSuccessResult(wechatUtil.sendMessage(dto));
    }
}
